<template>
	<div class="">

		<!-- <div class="zzc" v-if="showzzc" @click="close"></div> -->
		<div class="container">
			<div class="title">供应商管理</div>

			<div class="search_box" style="flex-wrap: wrap;">

				<input type="text" autocomplete="off" v-model="name" class="form-control search_inp"
					style="margin-bottom: 0;" placeholder="输入名称">


				<div class="sea_btn sear_btns" @click="search()">
					<img src="@assets/images/search.png" alt="">
					查询
				</div>


				<div class="add_btn sear_btns" @click="openadd" v-if="$permissions.indexOf(194)  != -1">
					<img src="@assets/images/add.png" alt="">
					新增
				</div>
				<div class="del_btn sear_btns" @click="delopen(0)" v-if="$permissions.indexOf(197)  != -1">
					<img src="@assets/images/del.png" alt="">
					删除
				</div>
			</div>
			<div class="table-responsive">
				<h2 class="tcent" v-if="list.length ==0">暂时没有数据</h2>
				<table class="table table-hover" v-else>
					<tr>
						<th style="width: 50px;">
							<input type="checkbox" autocomplete="off" @change="changeall" v-model="choseall"
								name="adepart" id="adepart"><label for="adepart"></label>
						</th>
						<th>供应商名称</th>
						<th>联系人</th>
						<th>联系电话</th>
						<th>合同数</th>
						<th>合同金额</th>
						<th>未付款</th>
						<th class="tcent" v-if="$permissions.indexOf(196)  != -1 || $permissions.indexOf(197)  != -1">操作
						</th>
					</tr>
					<tr v-for="item,index in list">
						<td style="width: 50px;">
							<input type="checkbox" v-model="item.chosesf" @change="chosechange" name="adepart"
								:id="'adepart'+item.id"><label :for="'adepart'+item.id"></label>
						</td>
						<td>{{item.name}}</td>
						<td>{{item.contacts}}</td>
						<td>{{item.contactsPhone}}</td>
						<td>{{item.agreementCount}}</td>
						<td>{{item.count}}</td>
						<td>{{item.needPay}}</td>
						<td class="tcent" style="width: 200px;"
							v-if="$permissions.indexOf(196)  != -1 || $permissions.indexOf(197)  != -1">
							<a href="javascript:;" class="btn-green btns" @click="edit(index)"
								v-if="$permissions.indexOf(196)  != -1">编辑</a>
							<a href="javascript:;" class="btn-gray btns" @click="delopen(item.id)"
								v-if="$permissions.indexOf(197)  != -1">删除</a>

						</td>
					</tr>

				</table>

				<div class="page_box">
					<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
						:current-page="page" :page-sizes="[10, 30, 60, 100]" :page-size="limit"
						layout="total, sizes, prev, pager, next, jumper" :total="inglen">
					</el-pagination>
				</div>

			</div>


		</div>
		<!--新增-->
		<div :class="showadd?'modal in fade':'modal fade'" tabindex="-1" role="dialog" id="keshi"
			:style="showadd?'display: block;z-index:199;':'z-index:199;'">
			<div class="cent w600" style="justify-content: center;width: 860px !important;">
				<div class="modal-dialog" role="document" style="width: 100%;height: 462px;">
					<div class="modal-content">
						<div class="modal-header tit">
							<em></em>{{id?'编辑供应商':'新建供应商'}}
							<div class="right" @click="closeadd">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"
									style="line-height: normal;"><span class="iconfont icon-cha"
										aria-hidden="true"></span> </button>
							</div>
						</div>
						<!--表单-->
						<div class="modal-body h100 search-cont" style="padding: 15px 27px;height: 344px;">
							<div class="sublist">
								<div class="subli">
									<div class="subli_left">
										<label class="subl"><em class="red">*</em>名称</label>
										<div class="input-cont">
											<input type="text" class="form-control" v-model="info.name"
												placeholder="输入供应商名称">
										</div>
									</div>
									<div class="subli_left">
										<label class="subl"><em class="red">*</em>联系人</label>
										<div class="input-cont">
											<input type="text" class="form-control" v-model="info.contacts"
												placeholder="输入联系人">
										</div>
									</div>
								</div>
								<div class="subli">
									<div class="subli_left">
										<label class="subl"><em class="red">*</em>联系电话</label>
										<div class="input-cont">
											<input type="text" class="form-control" v-model="info.contactsPhone"
												placeholder="输入联系电话">
										</div>
									</div>
								</div>
								<div class="subli">
									<div class="subli_left" style="width: 100%;">
										<label class="subl">备注</label>
										<div class="input-cont">
											<textarea name="" v-model="info.remark" id=""
												placeholder="请输入备注"></textarea>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="modal-footer tcent">
							<button class="btn btn-primary" @click="showData">确定</button>
							<button class="btn btn-info close_eng" @click="closeadd">关闭</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="alzzc" v-if="delalert">
			<div class="del_alert">
				<div class="modal-header tit" style="text-align: left;">
					<em></em>信息
					<div class="right" @click="delalert=false">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"
							style="line-height: normal;"><span class="iconfont icon-cha" aria-hidden="true"></span>
						</button>
					</div>
				</div>
				<div class="alert_info">确认要删除选中的这<span>{{delnum}}</span>条数据吗？</div>
				<div class="alert_btns">
					<div class="alert_sure" @click="del">确认</div>
					<div class="alert_close" @click="delalert=false">取消</div>
				</div>
			</div>
		</div>

		<div class="loading-content" v-if="showloading">
			<div class="loading-spinner">
				<svg viewBox="25 25 50 50" class="circular">
					<circle cx="50" cy="50" r="20" fill="none" class="path"></circle>
				</svg>
			</div>
			<div class="loading-text">加载中...</div>
		</div>
	</div>
</template>

<script type="text/babel">
	import $ from 'jquery'

	export default {
		name: "",
		data() {
			return {
				info:{name:'',contacts:"",contactsPhone:'',remark:''},
				page: 1,
				list: [],
				inglen: 0,
				limit: 10,
				num: 1,
				showloading: false,
				showadd: false,
				delnum:'',
				departId:'',
				delalert:false,
				choseall:false,
				names:'',
				name:"",
				
				id:"",
				ids:""
			}
		},
		components: {},
		mounted() {
			this.getlist();
		},
		beforeRouteEnter(to, from, next) { //路由导航钩子，通过页面路由标记是否需要清空页面数据重新加载
		    to.meta['fromPath'] = from.path;
			to.meta['needFresh'] = false;
		    
		    next();
		  },
		activated(){
			
		},
		methods: {
			
			changeall(){
				if(this.choseall){
					for (var i = 0; i < this.list.length; i++) {
						this.list[i].chosesf = true
					}
				}else{
					for (var i = 0; i < this.list.length; i++) {
						this.list[i].chosesf = false
					}
				}
			},
			chosechange(){
				for (var i = 0; i < this.list.length; i++) {
					if(this.list[i].chosesf == true){
						this.choseall=true
					}else{
						this.choseall=false
						break
					}
					
				}
			},
			search(){
				this.names = this.name
				this.page = 1
				this.getlist()
			},
			
			closealert(){
				
			},
			delopen(id){
				if(id > 0){
					this.ids = id
					this.delnum = 1
					this.delalert=true
				}else{
					var ids=''
					var num = 0
					for (var i = 0; i < this.list.length; i++) {
						if(this.list[i].chosesf==true){
							ids = ids+''+this.list[i].id+','
							num++
						}
					}
					this.ids = ids.substring(0,ids.length-1)
					if(this.ids==''){
						this.$Toast('暂无选中');
						return
					}
					this.delnum = num
					this.delalert=true
				}
			},
			// 删除
			del(){
				
				this.delalert=false
				var param = {
					ids:this.ids
				}
				var that = this
				this.$http.post(this.$url + '/xm/provider/delete', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.$Toast(response.data.msg);
						that.page=1
						that.showinfo = false
						that.menushow = false
						that.getlist()
						
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},

			openadd(){
				this.showadd=true
				this.ppname =  ''
				this.id =  ''
				this.type = 'add'
			},
			
			edit(index){
				this.type = 'edit'
				var param = {
					id:this.list[index].id
				}
				this.id = this.list[index].id
				this.showloading = true
				var that = this
				this.$http.post(this.$url + '/xm/provider/selectOne', this.$qs.stringify(param))
					.then(function(response) {
						that.info = {
							id:response.data.data.id,
							name:response.data.data.name,
							contacts:response.data.data.contacts,
							contactsPhone:response.data.data.contactsPhone,
							remark:response.data.data.remark,
						}
						
						that.$forceUpdate()
						that.showadd = true
						that.showloading = false
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
				
			},
			
			closeadd(){
				this.showadd = false;
				
				this.info =  {name:'',contacts:"",contactsPhone:'',remark:''}
				this.id =  ''
			},
			
			 handleSizeChange(val) {
				this.limit = val
				this.choseall = false
				this.getlist()
			},
			handleCurrentChange(val) {
				this.page = val
				this.choseall = false
				this.getlist()
			},
			
			// 表单提交
			showData() {				
				if (this.info.name.trim() == ''||this.info.contacts.trim() == ''||this.info.contactsPhone.trim() == '') {
					this.$Toast("请填写必填选项");
					return
				}
				
				this.showloading = true
				var that = this
				this.$http.post(this.$url + '/xm/provider/save', this.$qs.stringify(this.info))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.$Toast(response.data.msg);
						that.showadd = false
						that.showloading = false
						that.info = {name:'',contacts:"",contactsPhone:'',remark:''}
						that.getlist()
					})
					.catch(function(error) {
						that.$Toast('网络拥堵，刷新一下');
					});
				
			},
			
			// 点击遮罩层
			close(){
				this.options_show=false
				this.showzzc=false
				this.showinfo=false
			},
			
			getlist() {
				this.showloading = true
				var that = this
				var param = {
					page:this.page,
					limit:this.limit,
					name:this.names,
				}
				this.$http.post(this.$url + '/xm/provider/select', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.list = response.data.data
						that.inglen = response.data.count
						for (var i = 0; i < that.list.length; i++) {
							that.list[i].chosesf = false
						}
						that.choseall = false
						that.$forceUpdate()
						that.showloading = false
					})
					.catch(function(error) {
						console.log(error);
						// sessionStorage.setItem('token','undefined')
						// that.$router.push('/login')
						that.$Toast('网络拥堵，刷新一下');
					});

			},
		},

		computed: {},
	}
</script>
<style lang='less' scoped>
	.alert_btns {
		margin-top: 20px;
	}

	.nosys:hover .temenu {
		display: block;
	}

	.temli {
		height: 35px;
		line-height: 35px;
		cursor: pointer;
	}

	.temenu {
		position: absolute;
		background: #fff;
		box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
		width: 100px;
		top: 30px;
		border-radius: 5px;
		padding: 5px 0;
		display: none;
		z-index: 2;
	}

	.nosys {
		position: relative;
		display: flex;
		justify-content: center;
		width: 72px;
		margin: 0 auto;
	}

	.title {
		font-size: 24px;
		color: #000000;
	}

	.alert_info textarea {
		width: 100%;
		background: #FFFFFF;
		border: 1px solid #CCCCCC;
		box-shadow: 0px 2px 0px 0px #EEEEEE;
		border-radius: 5px;
		padding: 5px 10px;
		outline: none;
		margin-top: 10px;
		margin-bottom: -10px;
	}

	.task_li {
		display: flex;
		/* align-items: center; */
		margin-bottom: 20px;

	}

	.task_r textarea {
		width: 271px;
		height: 129px;
		background: #FFFFFF;
		border: 1px solid #CCCCCC;
		box-shadow: 0px 2px 0px 0px #EEEEEE;
		border-radius: 5px;
		padding: 5px 10px;
		outline: none;
	}

	.task_l {
		font-size: 14px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #000000;
		line-height: 34px;
	}

	.flexbox img {
		width: 18px;
		margin-left: 6px;
	}

	.flexbox {
		display: flex;
		align-items: center;
	}

	.rwname {
		font-size: 18px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #4286F5;
		width: 228px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.task_sp_bto {
		display: flex;
		justify-content: center;
		align-items: center;
		height: 67px;
	}

	.task_pass {
		width: 76px;
		height: 34px;
		background: #32B16C;
		border-radius: 6px;
		font-size: 14px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #FFFFFF;
		text-align: center;
		line-height: 34px;
		margin-left: 19px;
		cursor: pointer;
	}

	.task_th {
		width: 76px;
		height: 34px;
		background: #EC6941;
		border-radius: 6px;
		font-size: 14px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #FFFFFF;
		text-align: center;
		line-height: 34px;
		cursor: pointer;
	}

	.task_sp_no {
		font-size: 16px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #4286F5;
	}

	.task_sp_top {
		border-bottom: 1px solid #dce6fc;
		height: 80px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.task_sp_name {
		width: 48px;
		height: 48px;
		background: #4286F5;
		border-radius: 100%;
		font-size: 16px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #FFFFFF;
		margin-right: 13px;
	}

	.task_sp {
		width: 357px;
		height: 148px;
		background: #F1F4FD;
		border-radius: 6px;
		padding: 0 14px;
		margin-bottom: 30px;
	}

	.task_left {
		width: 50%;
		height: calc(100vh - 103px);
		overflow-y: scroll;
		padding: 35px 32px;
		overflow-x: hidden;
	}

	.task_box_title {
		display: flex;
		align-items: center;
		font-size: 20px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		margin-bottom: 10px;
		color: #000000;
	}

	.task_box {
		display: flex;
		align-items: stretch;
	}

	.task_cur {
		width: 9px;
		height: 9px;
		background: #D2D2D2;
		border-radius: 50%;
		margin-right: 10px;
	}

	.ri_li {
		display: flex;
		align-items: center;
		padding: 11px 20px;
		cursor: pointer;
	}

	.ri_li img {
		margin-right: 8px;
	}

	.rightmenu {
		position: absolute;
		width: 130px;
		height: 119px;
		background: #FFFFFF;
		/* border: 1px solid #D2D2D2; */
		box-shadow: 1px 2px 6px 0px rgba(0, 0, 0, 0.1);
		right: 0;
		padding-top: 7px;
	}

	.taskinfo_box {
		/* width: 865px; */
		animation: test .3s;
		width: 0;
		height: calc(100vh - 50px);
		background: #fff;
		box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.2);

	}

	@keyframes test2 {
		0% {
			width: 846px;
		}

		100% {
			width: 0;
		}
	}

	@keyframes test {
		0% {
			width: 0;
		}

		100% {
			width: 846px;
		}
	}

	.tx {
		animation: test .3s;
		width: 865px;
	}

	.tx2 {
		animation: test2 .3s;
		width: 0;
	}

	.task_info_title_right {
		position: relative;
	}

	.task_info_title_right img {
		width: 18px;
	}

	.task_info_title_left {
		width: 100px;
		height: 34px;
		background: #3574DA;
		border-radius: 17px;
		font-size: 14px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}

	.task_zzc {
		width: 846px;
		height: 100vh;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		position: fixed;
		padding-top: 50px;
		top: 0;
		/* left: 0; */
		right: 0;
		z-index: 5;
	}

	.taskinfo_title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 20px;
		background: #f7f7f7;
		height: 53px;
	}

	.rwadd {
		height: 20px;
		line-height: 20px;
		padding-right: 8px;
		border-right: 1px solid #fff;
		margin-right: 13px;
	}

	.rw {
		width: 120px;
		margin-bottom: 20px;
		background-color: #409eff;
		border-radius: 34px;
	}

	.btnsele {
		border: none;
		margin-bottom: 0 !important;

		margin-left: 0 !important;
	}

	.rw .btnsele /deep/ .el-input .el-select__caret {
		color: #fff;
		position: relative;
		left: 10px;
	}

	.rw .btnsele /deep/ .el-input__inner {
		width: 10px;
		border: none;
		padding: 0;
		background: transparent;
		color: transparent;
		/* height: 0; */
	}

	/* 
	.rw img {
		height: 13px;
		width: 13px;
		margin-right: 3px;
	} */

	.input-cont:hover .clears {
		display: block;
	}

	.clears {
		width: 10px;
		position: absolute;
		right: 35px;
		top: 14px;
		display: none;
		cursor: pointer;
	}

	.sublia {
		display: flex;

	}

	.subli textarea {
		width: 693px;
		height: 124px;
		background: #FFFFFF;
		border: 1px solid #CCCCCC;
		box-shadow: 0px 2px 0px 0px #EEEEEE;
		border-radius: 5px;
		outline: none;
		padding: 10px 10px;
	}

	.subli /deep/ .el-date-editor--date .el-input__inner,
	.subli /deep/ .el-date-editor.el-input,
	.el-date-editor.el-input__inner {
		width: 271px !important;
	}

	.subl {
		width: 100px;
		text-align: right;
		margin-right: 17px;
	}

	.subli /deep/ .el-input__prefix,
	.task_r /deep/ .el-input__prefix {
		right: 5px;
		left: auto;
		width: 25px;
	}

	.subli input,
	.subli .el-select {
		width: 271px;
		margin-left: 0;
	}

	.subli /deep/ .el-input__inner {
		height: 34px;
	}

	.subli label {
		margin-bottom: 0;
	}

	.sublist {
		padding-top: 15px;
	}

	.subli_left {
		display: flex;
		line-height: 34px;
		/* align-items: center; */
		width: 50%;
	}

	.subli {
		display: flex;
		align-items: center;
		color: #000;
		margin-bottom: 15px;
		justify-content: space-between;
	}

	/deep/ .el-pagination .btn-prev {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	/deep/ .el-pagination .btn-next {
		border: 1px solid #ccc;
		padding: 0;
		border-left: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	/deep/ .el-pager li {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		line-height: 33px;
	}

	/deep/ .el-pager li:nth-last-of-type(1) {
		border-right: 1px solid #ccc;
	}

	/deep/ .el-pager li.active {
		border: #4286f5 1px solid;
		background: #4286f5;
		color: #fff;
	}

	.numslen {
		position: absolute;
		bottom: 0px;
		right: 50px;
		font-size: 12px;
	}

	/deep/ .el-input--prefix .el-input__inner {
		height: 34px;
		padding: 0 8px;
	}

	/deep/ .el-date-editor--date .el-input__inner {
		width: 150px !important;
	}

	.search_box /deep/ .el-input__inner {
		width: 117px;
		height: 34px;
		/* background: #F6F6F6; */
		border: 1px solid #CCCCCC;
		/* box-shadow: 0px 2px 0px 0px #EEEEEE; */
		border-radius: 5px;

	}

	/deep/ .el-input__icon {
		line-height: 34px;
	}


	.el-select {
		margin-left: 10px;
	}

	.search_box {
		margin-bottom: 20px;
	}

	.search_box .el-select {
		margin-bottom: 0px;
	}

	.form-group .el-select {
		margin-left: 0px
	}

	.el-input__icon {
		line-height: 34px;
	}

	.el-input__inner {
		height: 34px;
		width: 110px;
		/* margin-left: 10px; */
	}

	.el-upload__input {
		bottom: 35px;
	}


	.btns {
		min-width: 72px;
		padding: 0 8px !important;
		width: auto !important;
	}


	.options {
		z-index: 40001;
	}



	.down_li:hover {
		background: #4286f5;
		color: #fff;
	}


	.modal-lg .modal-body.h100 {
		height: calc(100vh - 130px);
	}

	.el-input--prefix .el-input__inner {
		padding-left: 12px;
		padding-right: 12px;
	}

	.search_inp {
		width: 260px;
		/* width: 160px; */
		margin-left: 10px;
		/* margin-bottom: 20px; */
	}

	.mb0,
	.mb0 .form-group {
		margin-bottom: 15px;
	}


	.btn-primary:hover {
		color: #fff !important;
		background: #4286f5 !important;
		border: none;
	}

	.btn-primary {
		outline: none !important;
		color: #fff !important;
		background: #4286f5 !important;
		margin-right: 18px;
	}

	.close_eng:hover {
		color: #434343 !important;
		background: #EEEEEE !important;
		border: none;
	}

	.close_eng {
		border: none;
		color: #434343 !important;
		background: #EEEEEE !important;
		outline: none !important;
	}

	.el-autocomplete {
		width: 271px;
	}

	.el-autocomplete-suggestion li.highlighted,
	.el-autocomplete-suggestion li:hover {
		background-color: #ddd;
	}

	.el-popper {
		margin-top: 0;
		margin-right: 0;
	}

	/* 	.el-scrollbar__wrap > .rws {
		margin-left: -34px;
		margin-right: 0;
	} */

	.my-autocomplete {
		border-radius: 0 0 6px 6px;
		min-width: 400px;
		margin-top: 0 !important;


		.popper__arrow {
			display: none;
		}

		.el-scrollbar__wrap {
			padding: 0 !important;
			overflow-x: scroll;

			li {
				padding: 0 !important;
				min-width: 320px;
			}

		}

	}

	.tab_td {
		width: 25%;
		min-width: 80px;
		display: inline-block;
		padding: 0 10px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.el-scrollbar__wrap {
		-ms-overflow-style: none !important;
	}

	.el-scrollbar__wrap::-webkit-scrollbar {
		display: none;
	}

	.el-scrollbar__wrap li:nth-of-type(1) .tab_tr {
		border-top: 1px solid #ddd;
		background-color: #ddd;
	}

	.tab_tr {
		height: 40px;
		border-bottom: 1px solid #ddd;
		line-height: 40px;
		/* display: flex; */
	}

	.text_org {
		color: #EB6100;
	}

	.container /deep/ tr td:nth-of-type(2) span {
		color: #22ac38;
	}

	.el-pagination__total {
		height: 33px !important;
		line-height: 33px !important;
	}

	.el-input--mini .el-input__inner {
		height: 33px;
	}

	.el-pagination__editor.el-input .el-input__inner {
		height: 33px;
	}

	.page_box {
		display: flex;
		justify-content: flex-end;
		margin-top: 30px;
	}

	.el-pagination .btn-prev {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	.el-pagination .btn-next {
		border: 1px solid #ccc;
		padding: 0;
		border-left: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	.el-pager li {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		line-height: 33px;
	}

	.el-pager li:nth-last-of-type(1) {
		border-right: 1px solid #ccc;
	}

	.el-pager li.active {
		border: #4286f5 1px solid;
		background: #4286f5;
		color: #fff;
	}

	.btns {
		width: 72px;
		padding: 0;
	}

	.zzc {
		width: 100vw;
		height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
	}


	.ger:hover {
		background: #22ac38;
		color: #fff;
	}

	.loading-content {
		position: absolute;
		z-index: 2000;
		/* background-color: rgba(0, 0, 0, 0.8); */
		margin: 0;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		transition: opacity 0.3s;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		/* width: 200px;
		height: 150px;
		border-radius: 10px; */
	}

	.loading-spinner {
		text-align: center;
	}

	.loading-spinner .circular {
		height: 42px;
		animation: loading-rotate 2s linear infinite;
	}

	.loading-spinner .path {
		animation: loading-dash 1.5s ease-in-out infinite;
		stroke-dasharray: 90, 150;
		stroke-dashoffset: 0;
		/* stroke- 2; */
		stroke: #000;
		stroke-linecap: round;
	}

	.loading-text {
		font-size: 14px;
		color: #000;
	}

	@keyframes loading-rotate {
		100% {
			transform: rotate(360deg);
		}
	}

	@keyframes loading-dash {
		0% {
			stroke-dasharray: 1, 200;
			stroke-dashoffset: 0;
		}

		50% {
			stroke-dasharray: 90, 150;
			stroke-dashoffset: -40px;
		}

		to {
			stroke-dasharray: 90, 150;
			stroke-dashoffset: -120px;
		}
	}


	.qx:hover {
		/* background: #edf3fd; */
		/* color: #4286f5; */
	}

	/* 	.nosingle:hover {
		background: #d28679;
		color: #fff;
	} */

	.nosingle {
		/* background: #fcf4f2;  */
		color: #d28679;
	}

	/* .waitdoing:hover {
		background: #db9d46;
		color: #fff;
	}
 */
	.waitdoing {
		/* background: #fef6eb; */
		color: #db9d46;
	}

	/* .wait:hover {
		background: #af7087;
		color: #fff;
	} */

	.wait {

		/* background: #fbeff4; */
		color: #af7087;
	}



	.btns .iconfont {
		font-size: 10px;
		transition: all .3s;
		transform: rotateZ(0deg);
		line-height: 26px;
	}



	td,
	th {
		font-size: 14px;
		color: #333;
		/* line-height: 22px; */
		padding: 10px;
		border-top: 0;
		border-bottom: 1px solid #eee;
	}



	.modal {
		position: absolute;
	}

	.modal-dialog {
		height: 97%;
	}

	.modal-header {
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.modal-content {
		/* width: 85%; */
		margin: 0 auto;
		max-height: 100%;
		/* height: 65vh; */
		/* overflow-y: scroll; */
	}

	.cent {
		width: 100%;
		align-items: center;
	}
</style>
